import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    baiduTran: {
      appID: '20220604001238296',
      secretKey: 'yIgVdOOxZte4so8BzwIT',
      tranAPI: 'https://fanyi-api.baidu.com/api/trans/vip/translate'
    }
  },
  getters: {
    getBaiduTan (state) {
      return state.baiduTran
    }
  },
  mutations: {},
  actions: {},
  modules: {}
})
